home *** CD-ROM | disk | FTP | other *** search
- -- JMenu --
-
-
- This program allows an AmigaDOS script to display a menu, wait for the
- user to make a selection either with the mouse or the keyboard, and
- return the selection back to the script through an environment variable.
- It can also immediately execute any valid AmigaDOS command based upon
- the menu selection. The text for the menu is contained in a file which
- you pass to JMenu as the first parameter and the variable name you want
- to hold the user's selection is passed as the second parameter.
-
- Useage: JMenu <filename> <variablename>
-
- The menu is always centered on the screen. The maximum size of the
- menu is based on the screen resolution and font size, up to a maximum
- of 26 selections of a maximum of 80 characters each and an optional
- title area of up to 4 lines.
-
- Each line in the file which defines the menu begins with the word
- TITLE, MENU or EXEC, followed by a single space and the text to be
- displayed or the command to be executed. Blank lines or lines which
- start with a space are ignored.
-
- Examples: TITLE Startup Scripts
- MENU StartC jm
- EXEC execute S:StartC jm
-
- The displayed menu has a 3D look to it if the proper colors are used.
- It is recommended that color1 is white or very light, color2 is black
- or very dark, and color3 can be anything but looks best if it is a
- shade between color1 and color2. The standard workbench colors will do
- although the orange (color3) might be a bit too much.
-
- All error messages are printed on stderr. Any other messages are
- printed on stdout. The following are the error codes returned.
-
- 0 - - OK
- 5 - WARN - Ctrl-c was pressed.
- 10 - ERROR - The menu was too large to fit within the current screen.
- 20 - FAIL - Unable to open libraries, windows, files, etc.
-
- Notes for use with IconX.
-
- If the function being EXECuted would normally display text in the CLI
- window, you will not see it from JMenu running under IconX.
- Also DO NOT use the AmigaDOS Run command without redirecting the text
- output to a device or file (NIL: NULL: RAM:temp etc.). You will crash.
-
- This program is not public domain but it is free and may be freely
- distributed as long as there is no charge for it.
-
- If you have any problems, comments, suggestions, etc. I can be reached
- on PLink as JIMCOLLINS and GEnie as J.COLLINS26.
-
-